package satir.cell;

import satir.card.Card;
import satir.card.Deck;
import satir.player.Player;

/**
 * The Class EventCell.
 * @version 3.0 April 2012
 * @author Creative Family
 */
public class EventCell extends ActionCell {

    /**
     * Instantiates a new event cell.
     * @param width
     *            the width
     * @param height
     *            the height
     * @param borderHorizontal
     *            the border horizontal
     * @param borderVertical
     *            the border vertical
     * @param deck
     *            the deck
     */
    public EventCell(final int width, final int height, final char borderHorizontal,
	    final char borderVertical, final Deck deck) {
	super(width, height, borderHorizontal, borderVertical, "Event", deck);
    }

    /**
     * Trigger event cell action.
     * @param target
     *            the object of player
     */
    public void cellAction(final Player target) {
	Card eventCard = deck.drawCard();
	eventCard.activateCard(target);
    }
}
